package net.hn.hnms.biz.activiti.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 智呈物联 pansx
 * 2021/9/26 15:04
 * 1.0 version
 */
@Getter
@Setter
@ApiModel(value = "流程实例响应对象")
public class ProcessInstanceDto {
    private String id;
    @ApiModelProperty(value = "业务id")
    private String businessKey;
    @ApiModelProperty(value = "是否挂起")
    private boolean suspended;
    @ApiModelProperty(value = "实例名称")
    private String name;
    @ApiModelProperty(value = "启动人")
    private String startUserId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "启动时间")
    private Date startTime;
    @ApiModelProperty(value = "描述")
    private String description;

    private List<Map> task=new ArrayList<>();

    @Override
    public String toString() {
        return "ProcessInstanceDto{" +
                "id='" + id + '\'' +
                ", businessKey='" + businessKey + '\'' +
                ", suspended=" + suspended +
                ", name='" + name + '\'' +
                ", startUserId='" + startUserId + '\'' +
                ", startTime=" + startTime +
                ", description='" + description + '\'' +
                '}';
    }
}
